import java.lang.*;
import java.util.Scanner;
public class Test6_7 {
    public static void main(String[]args){
        Scanner a = new Scanner(System.in);
            System.out.println("请输入两个数字参数:"); 
            int x,y,z;
            x = a.nextInt();
            y = a.nextInt();
            try {
                x = Integer.parseInt(args[0]);
                y = Integer.parseInt(args[1]);
                z = x / y;
                System.out.println(x + "/" + y + "=" + z);
            } catch (ArrayIndexOutOfBoundsException e) {
                System.out.println("输入的参数不是两个");
            } catch (ArithmeticException e) {
                System.out.println("第二个参数不能为零");
            }
            finally{
                System.out.println("程序运行结束");
            }


         }

        }




